Optimal. Leaf size=163 \[ -\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {c^{3/2} (3 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{a^{5/2}}+\frac {2 d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {100, 155, 163,
65, 223, 212, 95, 214} \begin {gather*} \frac {c^{3/2} (3 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{a^{5/2}}-\frac {\sqrt {c+d x} (3 b c-2 a d) (b c-a d)}{a^2 b \sqrt {a+b x}}+\frac {2 d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 95
Rule 100
Rule 155
Rule 163
Rule 212
Rule 214
Rule 223
Rubi steps
\begin {align*} \int \frac {(c+d x)^{5/2}}{x^2 (a+b x)^{3/2}} \, dx &=-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}-\frac {\int \frac {\sqrt {c+d x} \left (\frac {1}{2} c (3 b c-5 a d)-a d^2 x\right )}{x (a+b x)^{3/2}} \, dx}{a}\\ &=-\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {2 \int \frac {-\frac {1}{4} b c^2 (3 b c-5 a d)+\frac {1}{2} a^2 d^3 x}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx}{a^2 b}\\ &=-\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {d^3 \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{b}-\frac {\left (c^2 (3 b c-5 a d)\right ) \int \frac {1}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx}{2 a^2}\\ &=-\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {\left (2 d^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{b^2}-\frac {\left (c^2 (3 b c-5 a d)\right ) \text {Subst}\left (\int \frac {1}{-a+c x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{a^2}\\ &=-\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {c^{3/2} (3 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{a^{5/2}}+\frac {\left (2 d^3\right ) \text {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{b^2}\\ &=-\frac {(3 b c-2 a d) (b c-a d) \sqrt {c+d x}}{a^2 b \sqrt {a+b x}}-\frac {c (c+d x)^{3/2}}{a x \sqrt {a+b x}}+\frac {c^{3/2} (3 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{a^{5/2}}+\frac {2 d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.42, size = 151, normalized size = 0.93 \begin {gather*} -\frac {\sqrt {c+d x} \left (3 b^2 c^2 x+2 a^2 d^2 x+a b c (c-4 d x)\right )}{a^2 b x \sqrt {a+b x}}+\frac {c^{3/2} (3 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c+d x}}{\sqrt {c} \sqrt {a+b x}}\right )}{a^{5/2}}+\frac {2 d^{5/2} \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{b^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(501\) vs.
\(2(131)=262\).
time = 0.07, size = 502, normalized size = 3.08
method | result | size |
default | \(-\frac {\sqrt {d x +c}\, \left (5 \ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) a \,b^{2} c^{2} d \,x^{2} \sqrt {b d}-3 \ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) b^{3} c^{3} x^{2} \sqrt {b d}-2 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{2} b \,d^{3} x^{2} \sqrt {a c}+5 \sqrt {b d}\, \ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) a^{2} b \,c^{2} d x -3 \sqrt {b d}\, \ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) a \,b^{2} c^{3} x -2 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) \sqrt {a c}\, a^{3} d^{3} x +4 \sqrt {b d}\, \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, a^{2} d^{2} x -8 \sqrt {b d}\, \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, a b c d x +6 \sqrt {b d}\, \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, b^{2} c^{2} x +2 a b \,c^{2} \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}\right )}{2 a^{2} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}\, x \sqrt {a c}\, \sqrt {b x +a}\, b}\) | \(502\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 281 vs.
\(2 (131) = 262\).
time = 2.44, size = 1234, normalized size = 7.57 \begin {gather*} \left [\frac {2 \, {\left (a^{2} b d^{2} x^{2} + a^{3} d^{2} x\right )} \sqrt {\frac {d}{b}} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b^{2} d x + b^{2} c + a b d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {d}{b}} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) - {\left ({\left (3 \, b^{3} c^{2} - 5 \, a b^{2} c d\right )} x^{2} + {\left (3 \, a b^{2} c^{2} - 5 \, a^{2} b c d\right )} x\right )} \sqrt {\frac {c}{a}} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} - 4 \, {\left (2 \, a^{2} c + {\left (a b c + a^{2} d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {c}{a}} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) - 4 \, {\left (a b c^{2} + {\left (3 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{4 \, {\left (a^{2} b^{2} x^{2} + a^{3} b x\right )}}, -\frac {4 \, {\left (a^{2} b d^{2} x^{2} + a^{3} d^{2} x\right )} \sqrt {-\frac {d}{b}} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {d}{b}}}{2 \, {\left (b d^{2} x^{2} + a c d + {\left (b c d + a d^{2}\right )} x\right )}}\right ) + {\left ({\left (3 \, b^{3} c^{2} - 5 \, a b^{2} c d\right )} x^{2} + {\left (3 \, a b^{2} c^{2} - 5 \, a^{2} b c d\right )} x\right )} \sqrt {\frac {c}{a}} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} - 4 \, {\left (2 \, a^{2} c + {\left (a b c + a^{2} d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {c}{a}} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) + 4 \, {\left (a b c^{2} + {\left (3 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{4 \, {\left (a^{2} b^{2} x^{2} + a^{3} b x\right )}}, -\frac {{\left ({\left (3 \, b^{3} c^{2} - 5 \, a b^{2} c d\right )} x^{2} + {\left (3 \, a b^{2} c^{2} - 5 \, a^{2} b c d\right )} x\right )} \sqrt {-\frac {c}{a}} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {c}{a}}}{2 \, {\left (b c d x^{2} + a c^{2} + {\left (b c^{2} + a c d\right )} x\right )}}\right ) - {\left (a^{2} b d^{2} x^{2} + a^{3} d^{2} x\right )} \sqrt {\frac {d}{b}} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b^{2} d x + b^{2} c + a b d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {d}{b}} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) + 2 \, {\left (a b c^{2} + {\left (3 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (a^{2} b^{2} x^{2} + a^{3} b x\right )}}, -\frac {{\left ({\left (3 \, b^{3} c^{2} - 5 \, a b^{2} c d\right )} x^{2} + {\left (3 \, a b^{2} c^{2} - 5 \, a^{2} b c d\right )} x\right )} \sqrt {-\frac {c}{a}} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {c}{a}}}{2 \, {\left (b c d x^{2} + a c^{2} + {\left (b c^{2} + a c d\right )} x\right )}}\right ) + 2 \, {\left (a^{2} b d^{2} x^{2} + a^{3} d^{2} x\right )} \sqrt {-\frac {d}{b}} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {d}{b}}}{2 \, {\left (b d^{2} x^{2} + a c d + {\left (b c d + a d^{2}\right )} x\right )}}\right ) + 2 \, {\left (a b c^{2} + {\left (3 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (a^{2} b^{2} x^{2} + a^{3} b x\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d x\right )^{\frac {5}{2}}}{x^{2} \left (a + b x\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c+d\,x\right )}^{5/2}}{x^2\,{\left (a+b\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________